]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/system: Use icon-name property
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 21 Aug 2022 16:24:06 +0000 (18:24 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 22 Aug 2022 14:15:17 +0000 (14:15 +0000)
The quick settings code was first developed in an extension, which
meant it made sense to maintain compatibility with GNOME 42 and not
use the new :icon-name convenience property.

There is no good for sticking with that for GNOME 43 as well.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2439>

js/ui/status/system.js

index d4607d5193a36a68316c929c998e1786cf5bc9b5..204a78ac342b4738b4d9a2be9d9d05ed2974bf22 100644 (file)
@@ -134,9 +134,7 @@ class ShutdownItem extends QuickSettingsItem {
             style_class: 'icon-button',
             hasMenu: true,
             canFocus: true,
-            child: new St.Icon({
-                icon_name: 'system-shutdown-symbolic',
-            }),
+            icon_name: 'system-shutdown-symbolic',
             accessible_name: _('Power Off Menu'),
         });
 
@@ -210,9 +208,7 @@ class LockItem extends QuickSettingsItem {
         super._init({
             style_class: 'icon-button',
             can_focus: true,
-            child: new St.Icon({
-                icon_name: 'system-lock-screen-symbolic',
-            }),
+            icon_name: 'system-lock-screen-symbolic',
             accessible_name: _('Lock Screen'),
         });